<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Change Letter</title>
<script type="text/javascript">
	function changeLetter() 
	{	
		var locate = document.getElementById("textBox");
		var leng = locate.value.length;
		locate.value = "";
		for (var i=0; i<leng; i++)
		{
			locate.value = "a" + locate.value;
			
		}


	}
</script>
<!-- faci la un textbox ca atunci cand incerci sa scrii in el toate caracterele sa devina 'a' -->
</head>
<body>
<form action=""><input type="text" id="textBox" onkeyup="changeLetter()" /></form>
</body>
</html>